package com.project.bean;

/**
 * 库存实体类
 */
public class GoodsBean {
    /**商品编号*/
    private int id;
    /**商品名称*/
    private String name;
    /**厂商*/
    private String factory;
    /**类别*/
    private String type;
    /**建议采购价*/
    private int purchasePrice;
    /**库存数量*/
    private int stockNum;
    /**建议销售价*/
    private int salePrice;
    /**商品图片*/
    private String image;

    public GoodsBean() {
    }

    public GoodsBean(int id, String name, String factory, String type, int purchasePrice, int stockNum, int salePrice, String image) {
        this.id = id;
        this.name = name;
        this.factory = factory;
        this.type = type;
        this.purchasePrice = purchasePrice;
        this.stockNum = stockNum;
        this.salePrice = salePrice;
        this.image = image;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(int purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public int getStockNum() {
        return stockNum;
    }

    public void setStockNum(int stockNum) {
        this.stockNum = stockNum;
    }

    public int getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(int salePrice) {
        this.salePrice = salePrice;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "GoodsBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", factory='" + factory + '\'' +
                ", type='" + type + '\'' +
                ", purchasePrice=" + purchasePrice +
                ", stockNum=" + stockNum +
                ", salePrice=" + salePrice +
                ", image='" + image + '\'' +
                '}';
    }
}
